package java8.test;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

import java.io.Serializable;
import java.util.List;

public class Order implements Serializable {
	private static final long serialVersionUID = 758946759711376490L;

	private List<OrderItem> orderItemList;

	public Order() {
	}

	public Order(List<OrderItem> orderItemList) {
		this.orderItemList = orderItemList;
	}

	/**
	 * 获取orderItemList
	 * @return orderItemList
	 */
	public List<OrderItem> getOrderItemList() {
		return orderItemList;
	}

	/**
	 * 设置orderItemList
	 * @param orderItemList orderItemList
	 */
	public void setOrderItemList(List<OrderItem> orderItemList) {
		this.orderItemList = orderItemList;
	}

	/**
	 * 注意大对象排除
	 */
	@Override
	public String toString() {
		return ReflectionToStringBuilder.toString(this);
	}
}
